Sinsegye-DPDK-Ethercat API


功能

void setup(DpdkEthercat *dpdk);	
void print_port_info(DpdkEthercat *dpdk);							
void set_lcore(DpdkEthercat *dpdk, unsigned lcore_id);				
void set_delay_µs(DpdkEthercat *dpdk, unsigned int delay_µs);
void sync_callback(struct rte_timer *tim, void *arg);				
void sync_with_master(DpdkEthercat *dpdk);							
void print_stats(DpdkEthercat *dpdk);								
void check_link_statµs(DpdkEthercat *dpdk);							
void run(DpdkEthercat *dpdk);	
int enqueue_tx_packet(DpdkEthercat *dpdk, struct rte_mbuf *mbuf);	
int enqueue_rx_packet(DpdkEthercat *dpdk, struct rte_mbuf *mbuf);										
int port_init(DpdkEthercat *dpdk, uint16_t port);					
unsigned int get_delay_µs(const DpdkEthercat *dpdk);					
struct rte_mbuf *dequeue_tx_packet(DpdkEthercat *dpdk);				
struct rte_mbuf *dequeue_rx_packet(DpdkEthercat *dpdk);				
struct rte_mempool *get_mbuf_pool(const DpdkEthercat *dpdk);														

详细说明

提供了用户态实现DPDK-Ethercat网口驱动(PMD模式)

功能文档